<template>
  <div class="error">
    <div class="content">
      <h2 class="title">{{ error.statusCode }}</h2>
      <p class="subtitle">{{ error.message }}</p>
    </div>
  </div>
</template>

<script>
  export default {
    name: "error",
    props: ["error"],
    head () { return { title: this.error.statusCode +" - "+this.$store.state.site.name } },
  }
</script>

<style scoped>
  .error{
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
</style>
